package org.railage.client.gui.main;

import org.railage.client.Client;

public class GUI {

	public static final String PROGRAM_NAME = "Railage System";
	public static final String ICON_PATH = "icon.jpg";

	public static final String DISCON_UNEXP_LOG_MSG = "Server might have reset the connection:";
	public static final String DISCON_UNEXP_GUI_MSG = "Server reset connection unexpectedly. Please restart the application in order to try to connect.";

	public static final String DATE_FORMAT = "yyyy-MM-dd";
	public static final String TIME_FORMAT = "HH:mm:ss";

	public static void exit() {
		if (Client.getInstance().isConnected()) {
			Client.getInstance().disconnect();
		}
		System.exit(0);
	}

	private GUI() {
	}
}
